package com.spring.ioc;

public class Student {

    public Integer getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(Integer studentNo) {
        this.studentNo = studentNo;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public Boolean getSex() {
        return sex;
    }

    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    public Integer getGradeId() {
        return gradeId;
    }

    public void setGradeId(Integer gradeId) {
        this.gradeId = gradeId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBornDate() {
        return bornDate;
    }

    public void setBornDate(String bornDate) {
        this.bornDate = bornDate;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIdentityCard() {
        return identityCard;
    }

    public void setIdentityCard(String identityCard) {
        this.identityCard = identityCard;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentNo=" + studentNo +
                ", loginPwd='" + loginPwd + '\'' +
                ", studentName='" + studentName + '\'' +
                ", sex=" + sex +
                ", gradeId=" + gradeId +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", bornDate='" + bornDate + '\'' +
                ", email='" + email + '\'' +
                ", identityCard='" + identityCard + '\'' +
                '}';
    }

    public Student(Integer studentNo, String loginPwd, String studentName, Boolean sex, Integer gradeId, String phone, String address, String bornDate, String email, String identityCard) {
        this.studentNo = studentNo;
        this.loginPwd = loginPwd;
        this.studentName = studentName;
        this.sex = sex;
        this.gradeId = gradeId;
        this.phone = phone;
        this.address = address;
        this.bornDate = bornDate;
        this.email = email;
        this.identityCard = identityCard;
    }

    public Student() {
    }

    /*
                StudentNo    int auto_increment comment '学号' primary key,
                LoginPwd     varchar(20)  null,
                StudentName  varchar(20)  null comment '学生姓名',
                Sex          tinyint(1)   null comment '性别，取值0或1',
                GradeId      int          null comment '年级编号',
                Phone        varchar(50)  not null comment '联系电话，允许为空，即可选输入',
                Address      varchar(255) null comment '地址，允许为空，即可选输入',
                BornDate     varchar(200) null comment '出生时间',
                Email        varchar(50)  null comment '邮箱账号，允许为空，即可选输入',
                IdentityCard varchar(18)  null comment '身份证号'
                 */
    private Integer studentNo;
    private String loginPwd;
    private String studentName;
    private Boolean sex;
    private Integer gradeId;
    private String phone;
    private String address;
    private String bornDate;
    private String email;
    private String identityCard;
}
